package com.oa.bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class IntegernalMail {

	private Integer eid;
	private String etitle;
	private String econtent;
	private Integer esend_id;
	private String edirection_id; //收件人
	private Date etime;
	private String eappendix;
	
	private String stime;
	
	private String uname;
	private String estate; //0表示正常 1表示发送方删除
	
	private String rstate;
	
	public Integer getEid() {
		return eid;
	}
	public void setEid(Integer eid) {
		this.eid = eid;
	}
	public String getEtitle() {
		return etitle;
	}
	public void setEtitle(String etitle) {
		this.etitle = etitle;
	}
	public String getEcontent() {
		return econtent;
	}
	public void setEcontent(String econtent) {
		this.econtent = econtent;
	}
	public Integer getEsend_id() {
		return esend_id;
	}
	public void setEsend_id(Integer esend_id) {
		this.esend_id = esend_id;
	}
	public String getEdirection_id() {
		return edirection_id;
	}
	public void setEdirection_id(String edirection_id) {
		
		this.edirection_id = edirection_id;
	}
	public Date getEtime() {
		return etime;
	}
	public void setEtime(Date etime) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		this.stime=sdf.format(etime);
		this.etime = etime;
	}
	public String getEappendix() {
		return eappendix;
	}
	public void setEappendix(String eappendix) {
		this.eappendix = eappendix;
	}
	public String getStime() {
		return stime;
	}
	
	public void setStime(String stime) {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		try {
			etime = sdf.parse(stime);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		this.stime = stime;
	}

	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	
	
	
	public String getRstate() {
		return rstate;
	}
	public void setRstate(String rstate) {
		this.rstate = rstate;
	}


	public String getEstate() {
		return estate;
	}
	public void setEstate(String estate) {
		this.estate = estate;
	}
	@Override
	public String toString() {
		return "IntegernalMail [eid=" + eid + ", etitle=" + etitle + ", econtent=" + econtent + ", esend_id=" + esend_id
				+ ", edirection_id=" + edirection_id + ", etime=" + etime + ", eappendix=" + eappendix + ", stime="
				+ stime + "]";
	}
	
	
}
